package com.wing.company.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.company.model.entity.Company;
import com.wing.company.model.request.CompanyForm;
import com.wing.company.model.response.CompanyInfoVo;
import com.wing.company.model.response.CompanyVO;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Map;

/**
 * -Service
 *
 * @author
 */
public interface CompanyService extends IService<Company> {

    /**
     * 添加
     *
     * @param companyForm
     * @return
     */
    int add(CompanyForm companyForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CompanyVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CompanyVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CompanyVO get4appById(Long id);

    /**
     * 同步企查查查询到的企业信息
     * @param companyInfoVo
     * @return
     */
    List<CompanyVO>  getQccCompanyInfo(CompanyInfoVo companyInfoVo);
}
